﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%var list = v.data("list") as List<Document_Message>; %>

<%if (list.Count > 0){ %>
<% foreach (var row in list) { %>
<div class="infolist" onselectstart="return false;" <%if (bllPowerGroupService.powercheck("article", "acmessagere", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('_{viewfield_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().MessageEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));" <%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="4%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="7%"><%=row.Id %></td>
			<td width="14%"><%=row.ipadd %></td>
			<td width="14%"><%=row.name %></td>
			<td width="6%"><%=row.support %></td>
			<td width="6%"><%=row.oppose %></td>
			<td width="14%"><%=row.addtime %></td>
			<td width="14%"><%if(!row.retime.IsNull()){ %><%=row.retime %><%}else{ %><span class="strong colorgreg">_{formmessmain_isreply_botton2}</span><%} %></td>
			<td width="6%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isreply ==1){ %><span class="select_ok"></span><%}else{ %><span class="select_no"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="6%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isclass==1){ %><span class="select_ok"></span><%}else{ %><span class="select_no"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="9%" id="infotype">
				<%if (bllPowerGroupService.powercheck("article", "acmessagere", modelpowergroup)) { %>
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('_{viewfield_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().MessageEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));" id="articleeditbotton<%=row.Id %>" href="#body" title="_{viewfield_botton}" hidefocus="true">_{viewfield_botton}</a></td>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>